package com.itheima.byteStream;

import jdk.swing.interop.SwingInterOpUtils;

/*
finally的优先级问题
 */
public class Demo04 {


    public static void main(String[] args) {
        try {
            int i=10;
            System.out.println(i);
            System.out.println("A");
            int j=i/0;
            System.out.println(j);
            System.out.println("B");
        } catch (Exception e) {
            e.printStackTrace();
            System.out.println("C");
           return;
           // System.exit(10);
        } finally {

            System.out.println("D");// finally的优先级 高于 return
        }

    }

}
